﻿using System;
using System.Runtime.Serialization;

namespace Mockery.Core
{
    /// <summary>
    /// This exception is thrown when a mock is requested that hasn't been registered.
    /// </summary>
    public class MissingMockException : Exception
    {
        public MissingMockException(string message, Exception innerException) : base(message, innerException)
        {}

        public MissingMockException(string message)
            : base(message)
        {}

        public MissingMockException()
        {}

        protected MissingMockException(SerializationInfo serializationInfo, StreamingContext streamingContext)
            : base(serializationInfo, streamingContext)
        {}
    }
}
